package com.herr.mix;

import com.herr.xml.UserDao;
import com.herr.xml.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author herr05
 */
@Configuration
@Import(JavaConfig.class)
public class JavaImportConfig {

    @Bean
    public UserService userService3(UserDao userDao){
        UserService userService=new UserService();
        userService.setUserDao(userDao);
        return userService;
    }

}
